<?php
session_start();
$name = $_SESSION['login'];
$id = $_GET['id'];
include("config.php");
dbconnect();
$req = "UPDATE `gb_".$name."_friends` SET `status` = '1' WHERE `friendid` = ".$id." LIMIT 1;";
mysql_query($req);
mysql_close();
echo(mysql_error());
echo("OK");
?>